<?php
  header("Content-Type:application/json");

	$conn = mysqli_connect('127.13.30.2','admin3R8pGpB','Vd8yi-7fciGM','wytweb');
	$sql="SET NAMES UTF8";
	mysqli_query($conn,$sql);

	@$start=$_REQUEST[start];
	if(!isset($start)){
		$start=0;
	}
	$count=5;

	$sql="SELECT did,img_sm,name,price,material FROM kf_dish LIMIT $start,$count";
	$result=mysqli_query($conn,$sql);

	$orders=[];
	while($row=mysqli_fetch_assoc($result)){
		$orders[]=$row;
	}

	echo json_encode($orders);
?>